package com.lichhao.system.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
//import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller("freeMarkerController")
public class FreeMarkerController {

	@RequestMapping(value = "/freemarkerTest")
	public String freemarkerTest(
			ModelMap map,
			@RequestParam(value = "message", required = false, defaultValue = "世界：我很好，谢谢你！") String message) {

		map.addAttribute("message", message);
		return "test";
	}
}
